<%--
  Created by IntelliJ IDEA.
  User: 小星打屁屁
  Date: 2015/4/11
  Time: 21:23
  To change this template use File | Settings | File Templates.
  contact me 243709758@qq.com
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>文章分类类别页面</title>
   <%
     String ctx =  pageContext.getRequest().getServletContext().getContextPath();
     request.setAttribute("ctx",ctx);
    %>
    <link href="${ctx}/css/mycss.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/bootstrap.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/bootstrap-theme.css" rel="stylesheet">
    <script charset="utf-8" src="<%=request.getContextPath() %>/kindeditor-4.1/kindeditor.js" type="text/javascript"></script>
    <script charset="utf-8" src="<%=request.getContextPath() %>/kindeditor-4.1/lang/zh_CN.js" type="text/javascript"></script>
    <script charset="utf-8" src="<%=request.getContextPath() %>/js/jquery-2.1.1.js" type="text/javascript"></script>
    <!-- DC iMenu CSS -->
    <link type="text/css" rel="stylesheet" href="../../styles/blog/menus/imenu/css/dc_imenu.css" />

</head>
<body class="container" >
<div class="head">
    <%@ include file="/jsp/admin/lib/admin_head.jsp"%>
</div>
<div class="nav">
    <%@ include file="/jsp/admin/lib/admin_nav.jsp"%>
    <hr>
</div>
<div class="row">
    <!-- 隔壁的一些框框 侧边栏 -->
    <div class="sidebar-offcanvas col-xs-2" id="sidemenu"> <!-- sidebar-offcanvas -->
        <%@ include  file="/jsp/admin/lib/admin_contentsider.jsp" %>
    </div>
    <div class="col-sm-8 blog-main"> <!--  col-md-6 -->
        <br/>
        <ol class="breadcrumb">
            <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span></a>
                ${ categoryList }
            </li>
        </ol>
        <div class="content">
            <div class="panel panel-default">
                <div class="panel-body">
                        <table class="table ">
                            <tr>
                                <td>#</td>
                                <td>分类名</td>
                                <td>操作</td>
                                <td>查看该标分类的文章</td>
                            </tr>

                            <c:forEach items="${ categoryList }" var="category" varStatus="itemStatus">
                                <tr>
                                    <td><c:out value="${ itemStatus.index+1 }"></c:out></td>
                                    <td><c:out value="${ category.name }"/></td>
                                    <td><a href="${pageContext.request.contextPath}/jsp/admin/content/category_update?id=${ category.id }">编辑</a>
                                        /<a href="${pageContext.request.contextPath}/jsp/admin/content/category_delete?id=${ category.id }">删除</a>
                                    </td>
                                    <td><a href="#">查看</a></td>
                                </tr>
                            </c:forEach>

                        </table>
                </div>
            </div>
        </div>
    </div>
</div>
   ${hello};
</body>
</html>
